export const params = function (page) {
  let params = {
    size: page.pageSize,
    page: page.current - 1
  }
  let sort = page.sort
  if (sort && sort.key && sort.key.length > 0) {
    let order = sort.order
    if (order !== 'normal') {
      params.sort = sort.key + ',' + sort.order
    }
  }
  return params
}
